<div class="store products container">
	
	<h1><?php echo __d('admin', 'Products'); ?></h1>
	
	<h2>
		<?php echo $this->Html->link(__d('admin', 'Create'), array('action' => 'create'), array('class' => 'btn btn-primary')); ?>
	</h2>
	
	<?php if( $products ): ?>
	<div class="grid product-grid row">
		<?php foreach($products as $product): ?>
		<div class="col-lg-3 col-md-3 col-sm-4 col-xs-6">
			<div class="item text-center">
				<a href="<?php echo $this->Html->url( array('action' => 'view', $product['Product']['id']) ); ?>" title="<?php echo $product['Product']['title']; ?>">
				<?php if( $product['Picture'] ): ?>
				<img src="<?php echo $product['Picture']['thumb']; ?>" class="img-thumbnail" alt="<?php echo $product['Product']['title']; ?>" />
				<?php else: ?>
				<img src="<?php echo $this->Html->url("/pictures/products/default.png"); ?>" class="img-thumbnail" alt="<?php echo $product['Product']['title']; ?>" />
				<?php endif; ?>
				<div class="grid-title nowrap"><?php echo h($product['Product']['title']); ?></div>
				</a>
				<div class="grid-extra">BsF. <?php echo $product['Product']['price']; ?></div>
			</div>
		</div>
		<?php endforeach; ?>
	</div>
	<?php else: ?>
	<div class="alert alert-info"><?php echo __d('admin', 'Nothing to show here!'); ?></div>
	<?php endif; ?>
	
</div>